﻿using System.Collections.Generic;
namespace LitBT
{
    /// <summary>
    /// 复合节点
    /// 包含多个子节点
    /// </summary>
    public abstract class CompositeNode : Node
    {
        public List<Node> children = new List<Node>();

        public override Node Clone()
        {
            var node = Instantiate(this);
            node.children = children.ConvertAll(c => c.Clone());
            return node;
        }
    }
}
